#######################################################################################################################
# File Name  : Makefile.config                                                                                        #
# Description: This makefile contains the target specific project settings (will be included by Makefile)             #
# Project    : Vector Basic Runtime System                                                                            #
# Module     : BrsHw for Platform RH850                                                                               #
#                                                                                                                     #
#---------------------------------------------------------------------------------------------------------------------#
# COPYRIGHT                                                                                                           #
#---------------------------------------------------------------------------------------------------------------------#
# Copyright (c) 2017 by Vector Informatik GmbH.                                                  All rights reserved. #
#                                                                                                                     #
#---------------------------------------------------------------------------------------------------------------------#
# AUTHOR IDENTITY                                                                                                     #
#---------------------------------------------------------------------------------------------------------------------#
# Name                          Initials      Company                                                                 #
# ----------------------------  ------------  ------------------------------------------------------------------------#
# Jan Lutterbeck                visljn        Vector Informatik GmbH                                                  #
# Steffen Frank                 visfsn        Vector Informatik GmbH                                                  #
# Alexander Becker              visabc        Vector Informatik GmbH                                                  #
# Torsten Kercher               vistkr        Vector Informatik GmbH                                                  #
# Benjamin Walter               visbwa        Vector Informatik GmbH                                                  #
# Timo M�ller                   vistir        Vector Informatik GmbH                                                  #
# Stefan Schorer                vissns        Vector Informatik GmbH                                                  #
# Viet Duc Nguyen               visvnn        Vector Informatik GmbH                                                  #
# Sven Di Liberto               visscs        Vector Informatik GmbH                                                  #
# Wolfgang Lienhart             viswlt        Vector Informatik GmbH                                                  #
# Michael Tiran                 vismin        Vector Informatik GmbH                                                  #
# Saschaa Mauser                vismaa        Vector Informatik GmbH                                                  #
# Sherif Elsabbahy              vissey        Vector Informatik GmbH                                                  #
# Anja Unnasch                  visuna        Vector Informatik GmbH                                                  #
# Ivo Georgiev                  visivg        Vector Informatik GmbH                                                  #
#---------------------------------------------------------------------------------------------------------------------#
# REVISION HISTORY                                                                                                    #
#---------------------------------------------------------------------------------------------------------------------#
# Version   Date        Author  Description                                                                           #
# --------  ----------  ------  --------------------------------------------------------------------------------------#
# 01.00.00  2012-07-19  visljn  Initial Version (RH850/F1A SCIT)                                                      #
# 01.00.01  2013-07-25  visfsn  Merged changes from V850 Makesupport 2.02.35                                          #
# 01.00.02  2013-08-12  visfsn  Added parameter SAFE_CONTEXT_OS_USED                                                  #
# 01.00.03  2013-10-10  visabc  P1X added                                                                             #
# 01.00.04  2013-11-11  visljn  R1M added                                                                             #
# 01.00.05  2013-11-27  visfsn  SAFE_CONTEXT_OS_USED changed to OS_USECASE, CPU_TYPE added                            #
# 01.00.06  2014-05-20  vistkr  DATA_MODEL added                                                                      #
# 01.00.07  2014-06-02  visfsn  Changed DERIVATIVE usage (e.g. F1L->R7F7010352)                                       #
# 01.00.08  2014-06-10  visfsn  Added custom linker file option, added SafeCtx options                                #
# 02.00.00  2014-07-30  visbwa  Changed file structure according to new BrsHw structure                               #
# 02.00.01  2014-07-30  visbwa  Added VEN001092 + VEN001099                                                           #
# 02.00.02  2015-01-19  vistir  Added VEBN01283 - F1M                                                                 #
# 02.00.03  2015-02-23  visbwa  Added VEBN01326 - P1H-C                                                               #
# 02.00.04  2015-04-21  vissns  Added VEN001176 - F1L                                                                 #
# 02.00.05  2015-06-25  visbwa  DEVICE_FILE_FOLDER and MULTI_BASE moved to makefile                                   #
# 02.00.06  2015-08-05  vistir  Added VEN001220 - E1M                                                                 #
# 02.00.07  2015-09-09  visbwa  Corrected link to devicefiles folder                                                  #
# 02.00.08  2015-09-15  visvnn  Added VEBN01459 - F1M                                                                 #
# 02.00.09  2015-11-04  visvnn  Added VEN001243 - E1x-FCC2                                                            #
# 02.00.10  2015-11-04  visvnn  Added VEN001265 - P1H-C                                                               #
# 02.00.11  2015-11-20  visscs  Added support for FS3_2_05                                                            #
# 02.00.12  2015-12-01  visbwa  Added support for D1x Mango Mainboard                                                 #
# 02.00.13  2015-12-21  visfsn  Removed OS_FEATURE_SET, added USER_LINKER_COMMAND_FILE                                #
# 02.00.14  2016-04-20  viswlt  Added template for EVA_BOARD setting DEFAULT                                          #
# 02.00.15  2016-04-21  vismin  Added EMU_PATH and Device file description for RENESAS Debug environment (CS+)        #
# 02.00.16  2016-05-18  visbwa  Added comment for VEBN00764 and VEBN00763                                             #
# 02.01.00  2016-06-14  visbwa  Changed header information according to Brs_Template 2.00.01                          #
# 02.01.01  2016-06-30  visbwa  Added OsCoreGen7 as OS_USECASE                                                        #
# 02.01.02  2016-09-23  visbwa  Added OS_USECASE MULTICORE_OS                                                         #
# 02.01.03  2016-12-01  vismaa  Added HSR_715 - F1H                                                                   #
# 02.01.03  2017-03-03  vissey  Added HSR_1502 - F1L                                                                  #
# 02.01.04  2017-03-10  visuna  Added HSR_1421 - P1X-144PIN-PB-T1-V2                                                  #
# 02.01.05  2017-04-13  visivg  Added HSR_1382 - F1X-100PIN-PB-T1-V2                                                  #
# 02.01.06  2017-05-04  visivg  Added HSR_1875 - P1X-100PIN-PB-T1-V2                                                  #
# 02.01.07  2017-05-16  visbwa  Added support for BRS_EVA_BOARD_F1X_176PIN, reworked board descriptions               #
# 02.01.08  2017-05-18  visivg  Reworked board descriptions for F1X_144PIN, F1X_064PIN, P1XC_292PIN, F1X_176PIN,      #
#                               P1X_144PIN, F1X_100PIN and P1X_100PIN                                                 #
#######################################################################################################################

#------------------------------------------------------------------------------
#------------------------- Must be filled out ---------------------------------
# Derivate (see BrsHw_DerivativeList.h for supported derivatives), e.g.
#       701035 (R7F701035X, F1L)
#       701315 (R7F701315X, P1M)
#       701062 (R7F701062X, R1M)
# This is used for ROM/RAM mapping, compiler switches, etc...
#------------------------------------------------------------------------------
DERIVATIVE = 701364

#------------------------------------------------------------------------------
#------------------------- Must be filled out ---------------------------------
# Select clock frequency of main oscillator (MHz)
#------------------------------------------------------------------------------
MAIN_OSC_CLK = 16

#------------------------------------------------------------------------------
#------------------------- Must be filled out ---------------------------------
# Select BRS time base clock (MHz). PLL will be used to create this frequency.
# Possible values are:  Derivative specific
#------------------------------------------------------------------------------
TIMEBASE_CLOCK = 160

#------------------------------------------------------------------------------
#--------------- Must be filled out if BRS_ENABLE_SUPPORT_LEDS is set ---------
# Select EVA board, possible values are:
#   DEFAULT     - Toggle Port 10 Pin 3
#   F1X_144PIN  - F1X-144PIN-PB-T1-V1 on X1X-MB-T1-V1
#                   (toggle Port8 Pin0 --> LED10)(TCM: Port 0 Pins 9-12)
#   VEN001092   - C1H      (toggle Port 4 Pin 11 --> LED1)
#   VEN001099   - D1M2H    (toggle Port 16 Pin 0 --> LED25)
#   F1X_064PIN  - F1X-064PIN-PB-T1-V1 on X1X-MB-T1-V1
#                   (toggle Port8 Pin0 --> LED10)(TCM: Port 0 Pins 9-12)
#   VEN001220   - E1M      (toggle Port 6 Pin 0 --> LED8)
#   VEN001243   - E1x-FCC2 (toggle Port 6 Pin 0 --> LED8)
#   P1XC_292PIN - P1XC-292PIN-PB-T1-V2 on X1X-MB-T1-V1
#                   (toggle Port6 Pin0 --> LED10)(TCM: Port 2 Pins 12-15)
#   VEBN01283   - F1M      (toggle Port 8 Pin 7 --> GPIO PIN 86)
#   VEBN01326   - P1H-C    (toggle Port 0 Pin 10)
#   F1X_176PIN  - F1x-176PIN-PB-T1-V1...V3 on X1X-MB-T1-V1
#                   (toggle Port8 Pin0 --> LED10)(TCM: Port 0 Pins 9-12)
#   MANGO       - SBEV-RH850-MAIN D1x Mango MainBoard
#   HSR_715     - F1H      (toggle Port 0 Pin 11 --> DBG_LED_GRN)
#   HSR_1502    - F1L - RH850/F1x StarterKit
#                   (toggle Port 0 Pin 11 --> LED1, set CAN0_EN and CAN1_EN to high)
#   P1X_144PIN  - P1X-144PIN-PB-T1-V2 on X1X-MB-T1-V1
#                   (toggle Port5 Pin8 --> LED10)(TCM: Port 3 Pins 3,6,9,10)
#   F1X_100PIN  - F1X-100PIN-PB-T1-V2 on X1X-MB-T1-V1
#                   (toggle Port8 Pin0 --> LED10)(TCM: Port 0 Pins 9-12)
#   P1X_100PIN  - P1X-100PIN-PB-T1-V2 on X1X-MB-T1-V1
#                   (toggle Port2 Pin2 --> LED10)(TCM: Port 3 Pins 3,6,9,10)
#------------------------------------------------------------------------------
EVA_BOARD = NONE

#------------------------------------------------------------------------------
#------------------------- MUST be filled out for GHS compiler ----------------
# Select the debugger
# possible values are:    MINICUBE
#                         E1
#------------------------------------------------------------------------------
DEBUGGER = E1

#------------------------------------------------------------------------------
#---------- MUST be filled out for RENESAS Debug Environment (CS+) ------------
# To be able to start Cubesuite+, it needs the path to the CubeSuiteW+.exe file.
# Example: D:\uti\Renesas_Electronics\CS+\CC
# Default: COMPILER_BASE
#------------------------------------------------------------------------------
EMU_PATH = D:\uti\Renesas\Rh850\CubeSuite_V20100\CubeSuite+

#------------------------------------------------------------------------------
#- Must be filled out for GHS compiler and/or RENESAS Debug Environment (CS+) -
# To be able to communicate with the debugger, it needs a device file.
# here a different device file then set in the makefile can be used.
# Device files for GHS can be found at
# \\vi.vector.int\backup\PES\DevelopmentTools\EmuAndDebugger\RH850\GettingStartedPaket_(DeviceFile)
#
# Example: dr7f7010352afp
#          use DR7F701312 for R7F701353
#
# And for CS+, Device files can be found at:
# $(EMU_PATH)\Device\RH850
#
# Example: R7F701034xAFP_common.xml
#          use R7F701034xAFP for R7F701034
#------------------------------------------------------------------------------
DEVICE_FILE_NAME = DR7F701312

#------------------------------------------------------------------------------
#------------------------- MUST be filled out for IAR compiler ----------------
# Select Data Model
# possible values are: tiny
#                      small
#                      medium
#                      large
#------------------------------------------------------------------------------
DATA_MODEL = 

#------------------------- Can be filled out ----------------------------------
# Select the type of used OS
# possible values are: BRS           Timer/IRQ generated by BRS (Default)
#                      OS            Timer/IRQ generated by OS
#                      MULTICORE_OS  Timer/IRQ generated by MultiCore OS (GHS only)
#                      SAFECTX       SafeContext ASR OS used
#                      OSGEN7        Os_CoreGen7 based MICROSAR OS
#
# Please note: If the parameter is set to SafeCtx, make sure the
#              GHS linker option "--preprocess_linker_directive" is used,
#              otherwise the includes in the linker script won't work!
#------------------------------------------------------------------------------
OS_USECASE =

#--------------- Can be filled out (only implemented for GHS yet) -------------
# Safe Context usecase only:
# Type in the names of your QM and ASIL application as defined 
# in your OS configuration
# 
# Currently, only one QM OS-application (e.g. for BSW) and one 
# ASIL OS-application (e.g. SafeWdg) are supported
#
# Please note: - If no name is entered, no sections for this will be generated 
#                for this OS application in the linker script
#              - If more than two OS applications are used, the linker script 
#                must be adapted manually or a custom linker file must be used!
#------------------------------------------------------------------------------
OS_APPLICATION_NAME_QM =
OS_APPLICATION_NAME_ASIL =

#--------------- Can be filled out --------------------------------------------
# Type in the filename of your custom linker script, e.g. "CustomScript.ld"
# If no filename is set, the linker script will be generated by the Brs
# 
#------------------------------------------------------------------------------
USER_LINKER_COMMAND_FILE =
